package com.jy.adscm.operation.cg.bean;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-07-17
 */
public class CgBomAndDate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 令号
     */
    @TableField("makeNo")
    private String makeNo;
    private Long bom;
    @TableField(exist = false)
    private String bomName;
    /**
     * 需要到达时间
     */
    @TableField("arriveDate")
    private Date arriveDate;
    private Integer nums;

    public String getBomName() {
        return bomName;
    }

    public void setBomName(String bomName) {
        this.bomName = bomName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMakeNo() {
        return makeNo;
    }

    public void setMakeNo(String makeNo) {
        this.makeNo = makeNo;
    }

    public Long getBom() {
        return bom;
    }

    public void setBom(Long bom) {
        this.bom = bom;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getArriveDate() {
        return arriveDate;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setArriveDate(Date arriveDate) {
        this.arriveDate = arriveDate;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    @Override
    public String toString() {
        return "CgBomAndDate{" +
        "id=" + id +
        ", makeNo=" + makeNo +
        ", bom=" + bom +
        ", arriveDate=" + arriveDate +
        ", nums=" + nums +
        "}";
    }
}
